/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package deadlocksim.backend.io;
import javax.swing.*;
import javax.swing.text.BadLocationException;

/**
 *
 * @author romilian
 */
public class ClockAreaNotifier {
    private JTextArea textArea;
    public ClockAreaNotifier (JTextArea textArea){
        this.textArea= textArea;
        
    }
    public void updateClockDisplay (String message, boolean err) throws BadLocationException {
        textArea.replaceRange(message, 0, textArea.getLineEndOffset(0));
    }
            
}
